Optimal. Leaf size=227 \[ -\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}-\frac{b d^2 (d e-c f) \log \left (c^2+2 c d x+d^2 x^2+1\right )}{2 \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2}-\frac{b d}{2 (e+f x) \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2}+\frac{b d^2 (-c f+d e+f) (d e-(c+1) f) \tan ^{-1}(c+d x)}{2 f \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.303089, antiderivative size = 227, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {5045, 1982, 709, 800, 634, 618, 204, 628} \[ -\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}-\frac{b d^2 (d e-c f) \log \left (c^2+2 c d x+d^2 x^2+1\right )}{2 \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2}-\frac{b d}{2 (e+f x) \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2}+\frac{b d^2 (-c f+d e+f) (d e-(c+1) f) \tan ^{-1}(c+d x)}{2 f \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5045
Rule 1982
Rule 709
Rule 800
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{a+b \tan ^{-1}(c+d x)}{(e+f x)^3} \, dx &=-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{(b d) \int \frac{1}{(e+f x)^2 \left (1+(c+d x)^2\right )} \, dx}{2 f}\\ &=-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{(b d) \int \frac{1}{(e+f x)^2 \left (1+c^2+2 c d x+d^2 x^2\right )} \, dx}{2 f}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{(b d) \int \frac{d (d e-2 c f)-d^2 f x}{(e+f x) \left (1+c^2+2 c d x+d^2 x^2\right )} \, dx}{2 f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{(b d) \int \left (\frac{2 d f^2 (d e-c f)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}+\frac{d^2 \left (d^2 e^2-4 c d e f-\left (1-3 c^2\right ) f^2-2 d f (d e-c f) x\right )}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) \left (1+c^2+2 c d x+d^2 x^2\right )}\right ) \, dx}{2 f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}+\frac{\left (b d^3\right ) \int \frac{d^2 e^2-4 c d e f-\left (1-3 c^2\right ) f^2-2 d f (d e-c f) x}{1+c^2+2 c d x+d^2 x^2} \, dx}{2 f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}-\frac{\left (b d^2 (d e-c f)\right ) \int \frac{2 c d+2 d^2 x}{1+c^2+2 c d x+d^2 x^2} \, dx}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}+\frac{\left (b d \left (4 c d^2 f (d e-c f)+2 d^2 \left (d^2 e^2-4 c d e f-\left (1-3 c^2\right ) f^2\right )\right )\right ) \int \frac{1}{1+c^2+2 c d x+d^2 x^2} \, dx}{4 f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}-\frac{b d^2 (d e-c f) \log \left (1+c^2+2 c d x+d^2 x^2\right )}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}-\frac{\left (b d \left (4 c d^2 f (d e-c f)+2 d^2 \left (d^2 e^2-4 c d e f-\left (1-3 c^2\right ) f^2\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 d^2-x^2} \, dx,x,2 c d+2 d^2 x\right )}{2 f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}\\ &=-\frac{b d}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (e+f x)}+\frac{b d^2 (d e-f-c f) (d e+f-c f) \tan ^{-1}(c+d x)}{2 f \left (d^2 e^2-2 c d e f+f^2+c^2 f^2\right )^2}-\frac{a+b \tan ^{-1}(c+d x)}{2 f (e+f x)^2}+\frac{b d^2 (d e-c f) \log (e+f x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}-\frac{b d^2 (d e-c f) \log \left (1+c^2+2 c d x+d^2 x^2\right )}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )^2}\\ \end{align*}
Mathematica [C] time = 0.555227, size = 175, normalized size = 0.77 \[ \frac{-\frac{a+b \tan ^{-1}(c+d x)}{(e+f x)^2}+\frac{1}{2} b d^2 \left (-\frac{2 f}{d (e+f x) \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}-\frac{4 f (c f-d e) \log (d (e+f x))}{\left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )^2}-\frac{i \log (-c-d x+i)}{(d e-(c-i) f)^2}+\frac{i \log (c+d x+i)}{(d e-(c+i) f)^2}\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 438, normalized size = 1.9 \begin{align*} -{\frac{{d}^{2}a}{2\, \left ( dfx+de \right ) ^{2}f}}-{\frac{{d}^{2}b\arctan \left ( dx+c \right ) }{2\, \left ( dfx+de \right ) ^{2}f}}+{\frac{{d}^{2}bf\arctan \left ( dx+c \right ){c}^{2}}{2\, \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}-{\frac{b{d}^{3}\arctan \left ( dx+c \right ) ce}{ \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}+{\frac{{d}^{4}b\arctan \left ( dx+c \right ){e}^{2}}{2\, \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}f}}+{\frac{{d}^{2}bf\ln \left ( 1+ \left ( dx+c \right ) ^{2} \right ) c}{2\, \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}-{\frac{b{d}^{3}\ln \left ( 1+ \left ( dx+c \right ) ^{2} \right ) e}{2\, \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}-{\frac{{d}^{2}bf\arctan \left ( dx+c \right ) }{2\, \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}-{\frac{{d}^{2}b}{ \left ( 2\,{c}^{2}{f}^{2}-4\,cdef+2\,{d}^{2}{e}^{2}+2\,{f}^{2} \right ) \left ( dfx+de \right ) }}-{\frac{{d}^{2}bf\ln \left ( f \left ( dx+c \right ) -cf+de \right ) c}{ \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}}+{\frac{b{d}^{3}\ln \left ( f \left ( dx+c \right ) -cf+de \right ) e}{ \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2}+{f}^{2} \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.56197, size = 552, normalized size = 2.43 \begin{align*} -\frac{1}{2} \,{\left (d{\left (\frac{{\left (d^{2} e - c d f\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{4} e^{4} - 4 \, c d^{3} e^{3} f + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{2} f^{2} - 4 \,{\left (c^{3} + c\right )} d e f^{3} +{\left (c^{4} + 2 \, c^{2} + 1\right )} f^{4}} - \frac{2 \,{\left (d^{2} e - c d f\right )} \log \left (f x + e\right )}{d^{4} e^{4} - 4 \, c d^{3} e^{3} f + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{2} f^{2} - 4 \,{\left (c^{3} + c\right )} d e f^{3} +{\left (c^{4} + 2 \, c^{2} + 1\right )} f^{4}} - \frac{{\left (d^{4} e^{2} - 2 \, c d^{3} e f +{\left (c^{2} - 1\right )} d^{2} f^{2}\right )} \arctan \left (\frac{d^{2} x + c d}{d}\right )}{{\left (d^{4} e^{4} f - 4 \, c d^{3} e^{3} f^{2} + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{2} f^{3} - 4 \,{\left (c^{3} + c\right )} d e f^{4} +{\left (c^{4} + 2 \, c^{2} + 1\right )} f^{5}\right )} d} + \frac{1}{d^{2} e^{3} - 2 \, c d e^{2} f +{\left (c^{2} + 1\right )} e f^{2} +{\left (d^{2} e^{2} f - 2 \, c d e f^{2} +{\left (c^{2} + 1\right )} f^{3}\right )} x}\right )} + \frac{\arctan \left (d x + c\right )}{f^{3} x^{2} + 2 \, e f^{2} x + e^{2} f}\right )} b - \frac{a}{2 \,{\left (f^{3} x^{2} + 2 \, e f^{2} x + e^{2} f\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 11.9383, size = 1415, normalized size = 6.23 \begin{align*} -\frac{a d^{4} e^{4} -{\left (4 \, a c - b\right )} d^{3} e^{3} f + 2 \,{\left (3 \, a c^{2} - b c + a\right )} d^{2} e^{2} f^{2} -{\left (4 \, a c^{3} - b c^{2} + 4 \, a c - b\right )} d e f^{3} +{\left (a c^{4} + 2 \, a c^{2} + a\right )} f^{4} +{\left (b d^{3} e^{2} f^{2} - 2 \, b c d^{2} e f^{3} +{\left (b c^{2} + b\right )} d f^{4}\right )} x -{\left (2 \, b c d^{3} e^{3} f -{\left (5 \, b c^{2} + 3 \, b\right )} d^{2} e^{2} f^{2} + 4 \,{\left (b c^{3} + b c\right )} d e f^{3} -{\left (b c^{4} + 2 \, b c^{2} + b\right )} f^{4} +{\left (b d^{4} e^{2} f^{2} - 2 \, b c d^{3} e f^{3} +{\left (b c^{2} - b\right )} d^{2} f^{4}\right )} x^{2} + 2 \,{\left (b d^{4} e^{3} f - 2 \, b c d^{3} e^{2} f^{2} +{\left (b c^{2} - b\right )} d^{2} e f^{3}\right )} x\right )} \arctan \left (d x + c\right ) +{\left (b d^{3} e^{3} f - b c d^{2} e^{2} f^{2} +{\left (b d^{3} e f^{3} - b c d^{2} f^{4}\right )} x^{2} + 2 \,{\left (b d^{3} e^{2} f^{2} - b c d^{2} e f^{3}\right )} x\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right ) - 2 \,{\left (b d^{3} e^{3} f - b c d^{2} e^{2} f^{2} +{\left (b d^{3} e f^{3} - b c d^{2} f^{4}\right )} x^{2} + 2 \,{\left (b d^{3} e^{2} f^{2} - b c d^{2} e f^{3}\right )} x\right )} \log \left (f x + e\right )}{2 \,{\left (d^{4} e^{6} f - 4 \, c d^{3} e^{5} f^{2} + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{4} f^{3} - 4 \,{\left (c^{3} + c\right )} d e^{3} f^{4} +{\left (c^{4} + 2 \, c^{2} + 1\right )} e^{2} f^{5} +{\left (d^{4} e^{4} f^{3} - 4 \, c d^{3} e^{3} f^{4} + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{2} f^{5} - 4 \,{\left (c^{3} + c\right )} d e f^{6} +{\left (c^{4} + 2 \, c^{2} + 1\right )} f^{7}\right )} x^{2} + 2 \,{\left (d^{4} e^{5} f^{2} - 4 \, c d^{3} e^{4} f^{3} + 2 \,{\left (3 \, c^{2} + 1\right )} d^{2} e^{3} f^{4} - 4 \,{\left (c^{3} + c\right )} d e^{2} f^{5} +{\left (c^{4} + 2 \, c^{2} + 1\right )} e f^{6}\right )} x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 6.7621, size = 1723, normalized size = 7.59 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]